Valid for Sitecore
5.2, 5.1.1
Add the GetFields Method
Prev Next |
The Hello World provider returns a single item with a single field. The GetFields method just builds the field list with the single field. Create the method using the source code shown below.
1. GetFields
1 public override FieldList GetItemFields(ItemDefinition item, VersionUri version, CallContext context)
2 {
3 Assert.ArgumentNotNull(item, "item");
4 Assert.ArgumentNotNull(version, "version");
5 Assert.ArgumentNotNull(context, "context");
6 FieldList list = new FieldList();
7 list.Add(this.TitleId, this.Title);
8 return list;
9 }
Prev Next